package com.example.myapp.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.example.myapp.bean.UserBeans;
import com.example.myapp.R;


public class MyAdapter3 extends BaseQuickAdapter<UserBeans, BaseViewHolder> {

    public MyAdapter3(){
        super(R.layout.activity_news);
    }

    @Override
    protected void convert(BaseViewHolder baseViewHolder, UserBeans bean) {
        baseViewHolder.setText(R.id.t_1,bean.getText1());
        baseViewHolder.setText(R.id.t_2,bean.getText2());
        baseViewHolder.setImageResource(R.id.p_1,bean.getP_1Id());
        baseViewHolder.setImageResource(R.id.p_2,bean.getP_2Id());
    }
}